GetPermissions
The GetPermissions method returns this draft's current permissions.
ODDraftPermissions GetPermissions ();
- return value
- The permissions on this draft.
DISCUSSION
The returned value specifies the kind of access that is currently allowed to this draft:
You can make changes to this draft only if its current permissions allow write access (exclusive or shared). Only the most recent draft of a document can allow write access.
- Exclusive read/write access (
kODDPExclusiveWrite
).- Shared read/write access (
kODDPSharedWrite
).- Read-only access (
kODDPReadOnly
).- Navigation-only access (
kODDPTransient
).- No access (
kODDPNone
).
The Bento container suite supports only the
kODDPReadOnly
andkODDPExclusiveWrite
draft permissions.SEE ALSO
Listing 2-5 on page 43 in OpenDoc Cookbook.
"Drafts" on page 285 in OpenDoc Programmer's Guide.
"The InitPartFromStorage Method" on page 295 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help